﻿using log4net;
using Microsoft.AspNetCore.Mvc.Filters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace OpenAuth.WebApi.Model
{
    public class HttpGlobalExceptionFilter : IExceptionFilter
    {
        private ILog log = LogManager.GetLogger(typeof(HttpGlobalExceptionFilter));
        void IExceptionFilter.OnException(ExceptionContext context)
        {
            log.Error(context.Exception);
            
        }
    }
}
